home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / system / almdn102.zip / ALARMBAT.BAT < prev    next >
DOS Batch File  |  1995-01-26  |  1KB  |  44 lines

  1. @echo off
  2. echo.
  3. echo Alarm v1.02 ∙ Copyright (c) 1994-95 by Dale Nurden
  4. echo.
  5.  
  6. if %1. == . goto Error
  7. if not exist %1\ALARMTSR.COM goto Error
  8. if not exist %1\ALARM.EXE goto Error
  9.  
  10. echo You are about to have changes made to your AUTOEXEC.BAT file.
  11. echo The original file will be renamed to AUTOEXEC.OLD, so you can always
  12. echo undo any changes made here by executing the following instruction:
  13. echo.
  14. echo    COPY C:\AUTOEXEC.OLD C:\AUTOEXEC.BAT
  15. echo.
  16. echo If you would like these changes to be made, press ENTER now.
  17. echo Otherwise, press Ctrl-Break or Ctrl-C to cancel.
  18. pause > nul
  19.  
  20. copy C:\AUTOEXEC.BAT C:\AUTOEXEC.OLD > nul
  21. echo %1\ALARM /U >> C:\AUTOEXEC.BAT
  22. echo %1\ALARMTSR >> C:\AUTOEXEC.BAT
  23.  
  24. echo.
  25. echo Changes have been made.
  26. goto End
  27.  
  28. :Error
  29. echo You must specify the complete path to the directory containing the
  30. echo ALARM program files when running this batch file. This program assumes
  31. echo your AUTOEXEC.BAT file is in the root of C:\.
  32. echo.
  33. echo NB! Ensure that you only give the path up to the directory name. Do not
  34. echo     add a filename or a backslash; that will be done for you.
  35. echo.
  36. echo *** THIS IS WRONG! -----  ALARMBAT C:\ALARM\ALARM.EXE
  37. echo *** THIS IS WRONG! -----  ALARMBAT C:\ALARM\
  38. echo.
  39. echo You should type something like this:
  40. echo        ALARMBAT C:\ALARM
  41.  
  42. :End
  43. echo.
  44.